import React from 'react'
import Mask from '@/components/Mask'
import { View, Text, } from '@tarojs/components';
import Router from '@/utils/router'
import { onlineCheckFun } from '@/utils/utils'
import './index.scss'
const DrawerLost = (props) => {
    const { online = {}, visible = {} } = props
    const { teacherId = '', onlineType, detail = {}, subjectName = '', subjectId } = visible
    const { scheduleDateId } = detail
    const { priceQaAmount, integralPrice, price } = online
    return <Mask
        {...props}>
        <View className='Drawer_DrawerLost_radius'>
            <View className='Drawer_DrawerLost_box'>
                <View className='Drawer_DrawerLost_content'>
                    <View className='Drawer_DrawerLost_title'>提示</View>
                    <View className='Drawer_DrawerLost_body'>
                        老师休息中，暂不进行答疑服务哦~
                        查看答疑老师<Text className='Drawer_DrawerLost_link' onClick={() => { Router('calendar', { args: { qaType: onlineType, teacherId, subjectName, subjectId } }) }}>在线日历</Text>
                    </View>
                    <View className='Drawer_DrawerLost_desc'>若继续提问，老师在线会尽快回复你</View>
                    <View className='Drawer_DrawerLost_btn' onClick={() => {
                        Router('submitReservation', { args: { qaType: onlineType, id: scheduleDateId, priceType: 'money', subjectId, subjectName } })

                    }}>继续答疑</View>
                </View>
            </View>
        </View>

    </Mask>
}
export default DrawerLost